package com.valuegroup.smarttodo.data.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;

import java.io.Serializable;
import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 任务步骤
 */
@Entity
public class TaskStep implements Serializable {
    private static final long serialVersionUID = 2000421555342440402L;
    @Id(autoincrement = true)
    private Long id;
    private Long taskId;

    private String title;

    // 是否完成
    private Boolean isFinish;

    private Integer sort;
    @NotNull
    private Date createdDt;
    @NotNull
    private Date updatedDt;
    @Generated(hash = 173001108)
    public TaskStep(Long id, Long taskId, String title, Boolean isFinish,
            Integer sort, @NotNull Date createdDt, @NotNull Date updatedDt) {
        this.id = id;
        this.taskId = taskId;
        this.title = title;
        this.isFinish = isFinish;
        this.sort = sort;
        this.createdDt = createdDt;
        this.updatedDt = updatedDt;
    }
    @Generated(hash = 903385424)
    public TaskStep() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getTaskId() {
        return this.taskId;
    }
    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }
    public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public Boolean getIsFinish() {
        return this.isFinish;
    }
    public void setIsFinish(Boolean isFinish) {
        this.isFinish = isFinish;
    }
    public Integer getSort() {
        return this.sort;
    }
    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public Date getCreatedDt() {
        return this.createdDt;
    }
    public void setCreatedDt(Date createdDt) {
        this.createdDt = createdDt;
    }
    public Date getUpdatedDt() {
        return this.updatedDt;
    }
    public void setUpdatedDt(Date updatedDt) {
        this.updatedDt = updatedDt;
    }
}
